<?php

use think\facade\Route;

//微信H5
Route::group('h5', function () {
    Route::rule("", "wechat.index/index");
    Route::rule('notify/:plaid/:addon', 'wechat.notify/index')->name('notify');
    Route::rule(':controller/:action', 'wechat.:controller/:action');
    Route::rule(':controller', 'wechat.:controller/index');
});
//企业微信
Route::group('wh5', function () {
    Route::rule("", "work.open/index");
    Route::rule(':controller/:action', 'work.:controller/:action');
    Route::rule(':controller', 'work.:controller/index');
});
//抖音
Route::group('dy', function () {
    Route::rule("", "douyin.open/index");
    Route::rule(':controller/:action', 'douyin.:controller/:action');
    Route::rule(':controller', 'douyin.:controller/index');
});

Route::rule('index/:action','index/:action');
